<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:if test="${param['page'] eq 'newByType'}">
	<table width="100%" style="margin: auto;text-align:center;" >  
		<tr class="title-content" >
			<td colspan="3"><h2>
			<s:set value="typeNew" var="type" />
			<c:if test="${type=='companyNews'}" >Tin Tức Công Ty</c:if>
			<c:if test="${type=='facultyNews'}" >Tin Tức Trong Ngành</c:if>
			<c:if test="${type=='estateNews'}" >Tin Bất Động Sản</c:if>
			<c:if test="${type=='archiStyleNews'}" >Phong Cách Kiến Trúc</c:if>
			<c:if test="${type=='geomancyNews'}" >Phong Thủy</c:if>
			<c:if test="${type=='funNews'}" >Lạ và Fun</c:if>
			</h2></td>
		</tr>
		<s:iterator value="listnew" status="new" > 
		<tr>
			<td>
				<table>
					<tr>
						<td rowspan="2"><img src="<s:property value="ImageUrl" />" width="150px" height="150px" /></td>
						<td><s:property value="Title" /></td>
					</tr>
					<tr><td><s:property value="ShortDescription" /></td></tr>
				</table>
			</td>
		</tr>
		</s:iterator>
	</table>
</c:if>